package com.balance.anole.client.retail.dao.jdbc;

import java.util.Date;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.balance.anole.client.retail.dao.MySQLExportDAO;

public class MySQLExportDAOImpl extends JdbcDaoSupport implements MySQLExportDAO {

	@Override
	public void exportDataUsingQuery(String exportQuery) {
		getJdbcTemplate().execute(exportQuery);
	}

	@Override
	public int expectedExportLineNumber(String countQuery, Date businessDate, String agentId){
		return getJdbcTemplate().queryForInt(countQuery, new Object[]{businessDate, agentId});
	}

}
